import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import actions from './actions'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import userMg from './modules/userMg'
import common from './modules/common'
import clientOrder from './modules/clientOrder'
import permission from './modules/permission'
import serviceOrder from './modules/serviceOrder'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    userMg,
    common,
    clientOrder,
    permission,
    serviceOrder
  },
  getters,
  actions
})

export default store
